import axios from "axios"

function upload(path, form) {
  const params = new FormData()
  for (let i in form) {
    params.append(i, form[i])
  }
  // console.log('parama', params);
  return axios.post(path, params, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

export default upload
